def decode_dat(dat:bytes):
    try:
        return (dat.decode("utf-8"))
    except:
        return (dat.decode("gbk"))